<%@page import="org.springframework.context.annotation.Bean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="cn.egame.common.model.PageData"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Date"%>
<%@page import="cn.egame.ext.op.OperationActivityInfo"%>
<%@page import="com.egame.manage.biz.server.pu.ParameterServiceImpl"%>
<%@page import="com.egame.manage.biz.utils.ConstVar"%>
<%@page import="cn.egame.ext.EnumTypeExt"%>
<%@page import="cn.egame.common.util.Utils"%>
<%@page import="com.egame.manage.biz.server.UserServiceImpl"%>
<%@page import="com.egame.manage.biz.utils.ConstVar"%>
<%@page import="com.egame.manage.biz.utils.ConstantVar"%>
<%@page import="cn.egame.ext.op.AdvDetail"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/css/main.css"  />
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/My97DatePicker/WdatePicker.js"></script>
<title>首页广告历史记录</title>
</head>
<body>
	<div class="matter_box">
		<h3 class="nopoint"><strong>彩蛋>小编>历史记录</strong></h3>
		<div class="task_search">
        </div>	
		<div class="matter_text clearfix nobg mart">
			<table cellpadding="0" cellspacing="0" class="table2" id="rights_list">
				<tr class="first">
					<th>序号</th>
					<th>广告标题</th>
					<th>广告状态</th>
					<th>开始时间</th>
					<th>结束时间</th>
					<th>操作人</th>
					<th>操作时间</th>
				</tr>
	<%
		if(request.getAttribute("advHisList")!= null){
			List<AdvDetail> advHisList = (List<AdvDetail>) request.getAttribute("advHisList");
			if(advHisList != null){
				for(AdvDetail bean:advHisList){
					%>
					<tr>
						<td align=center><%=bean.getId()%></td>
						<td align=center><%=bean.getTitle()%></td>
						<td align=center>已下线</td>
						<% 
							String begintime = "";
							if(bean.getBeginTime() != null){
								begintime = Utils.toDateString(bean.getBeginTime(),"yyyy-MM-dd hh:mm:ss");
							}
							String endtime = "";
							if(bean.getEndTime() != null){
								endtime = Utils.toDateString(bean.getEndTime(),"yyyy-MM-dd hh:mm:ss");
							}
							String operatetime = "";
							if(bean.getUpdateTime() != null){
								operatetime = Utils.toDateString(bean.getUpdateTime(),"yyyy-MM-dd hh:mm:ss");
							}
						%>
						<td align=center><%=begintime %></td>
						<td align=center><%=endtime %></td>
						<td align=center></td>
						<td align=center><%=operatetime %></td>
							
					</tr>
					<%
				}
			}
		}
	%>
</table>
<%@ include file="../../page.in"  %> 
</div>
</div>
</body>
</html>